package cn.cnf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * (comic)实体类
 *
 * @author ZhuMeiYi
 * @description
 * @since 2020-12-04 15:18:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Accessors(chain = true)
@TableName("comic")
public class Comic extends Model<Comic> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * comicName
     */
    private String comicName;
    /**
     * Introduction
     */
    private String introduction;
    /**
     * authorId
     */
    private String authorId;
    /**
     * authorName
     */
    private String authorName;
    /**
     * cover
     */
    private String cover;
    /**
     * 作品标签
     */
    private String tag;
    /**
     * 评论数
     */
    private Integer commentNum;
    /**
     * 订阅数
     */
    private Integer subscribeNum;
    /**
     * 收藏数
     */
    private Integer collectNum ;
    /**
     * 最新章节标题
     */
    private String lastChapterTitle;
    /**
     * 最新章节id
     */
    private String lastChapterId;
    /**
     * 订阅需要的积分
     */
    private Integer needMoney /*= 0*/;
    /**
     * 作品收入
     */
    private BigDecimal income;
    /**
     * 是否被管理员推荐
     */
    private Integer recommend /*= 0*/;
    /**
     * 作品状态
     */
    private Integer state /*= 10*/;
    /**
     * 审核状态
     */
    private Integer verifyState /*= 0*/;
    /**
     * createTime
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * updateTime
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /*
     * 关联标志位
     * */
    private String sign;

}